package com.bean;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class BeanWayTest {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context =
				new AnnotationConfigApplicationContext(PrePostConfig.class);
		BeanWay bean = context.getBean(BeanWay.class);
		BeanWay2 bean1 = context.getBean(BeanWay2.class);
		context.close();
	}


}
